﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:userInterfaceLibrary="clr-namespace:MyCompany.UserInterfaceLibrary">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="../ValueConverters.xaml" />
        <ResourceDictionary Source="../NamedStyles/StandardColors.xaml" />
    </ResourceDictionary.MergedDictionaries>
    <Style TargetType="{x:Type userInterfaceLibrary:CheckBoxTouch}">
        <Setter Property="BorderBrush" Value="{StaticResource BrushDarkGrey}" />
        <Setter Property="BorderThickness" Value="2" />
        <Setter Property="Background" Value="{StaticResource BrushLightGrey}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type userInterfaceLibrary:CheckBoxTouch}">
                    <Border Width="37"
                            Height="37"
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}"
                            CornerRadius="3">
                        <Path Margin="2"
                              Data="M 0,3 L 2,5 L 4,0 L 1.75,3.75 L 0,3 Z"
                              Fill="#FF38B44A"
                              Stretch="Uniform"
                              Stroke="{TemplateBinding BorderBrush}"
                              StrokeThickness="{TemplateBinding BorderThickness}"
                              Visibility="{TemplateBinding IsChecked,
                                                           Converter={StaticResource VisibilityConverter},
                                                           ConverterParameter=TrueToVisibleAndFalseToHidden}" />
                        <!--<Rectangle Margin="3" Fill="#FF38B44A" Visibility="{TemplateBinding IsChecked, Converter={StaticResource VisibilityConverter}, ConverterParameter=TrueToVisibleAndFalseToHidden}">
                            <Rectangle.Effect>
                                <DropShadowEffect Color="#FF23702E" />
                            </Rectangle.Effect>
                        </Rectangle>-->
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>